/**
 * 
 */
function clean(){
	sessionStorage.removeItem("user");
	sessionStorage.removeItem("num");
	window.location.href="login.html";
}
function Isyx(yx){
var reyx= /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/;
return(reyx.test(yx));
}
function check(a)               
{ 
	if(a.id=="s_email"){		
		 if(a.value==null||a.value==""){			
			document.getElementById(a.id+"c").className="form-group has-error";	  
		        return;		  
			}
		     else{
		  	   if(!Isyx(a.value)){		  		 
		  			document.getElementById(a.id+"c").className="form-group has-warning";		  		  
		  		   return;
	               }else{	            	
	            	   document.getElementById(a.id+"c").className="form-group has-success";   
	                   return;
	               }
	               }
	}
	if(a.id=="s_phone"){
		 if(a.value==null||a.value==""){
			 // str="请输入邮箱！";
				
				//ttt.innerHTML=str;
				  //alert("tt"+ttt.innerHtml);
				//	 $('#addres').modal('show');
			document.getElementById(a.id+"c").className="form-group has-error";
		  	  // s_email.focus();
		      //  return;		  
			}
		     else{
		    	 var reg = /^1[3|4|5|8][0-9]\d{4,8}$/;
		         //if((s_phone.value))
		  	   if(!reg.test(a.value)){
		  		 
		  			document.getElementById(a.id+"c").className="form-group has-warning";
		  		  // alert("请输入正确的邮箱地址!")
		  		  // s_email.focus();
		  		  // return false;
	               }else{
	            	   document.getElementById(a.id+"c").className="form-group has-success";   
	               }
	               }
	}
	 if(a.value==""||a.value==null){
		 document.getElementById(a.id+"c").className="form-group has-error";
	 }else{
		 document.getElementById(a.id+"c").className="form-group has-success";
	 }
}